package com.yz.platform.common.base;

import com.yz.platform.modules.sys.entity.SysUserEntity;

import java.util.Date;

/**
 * 实体类基类-提供共有属性
 * author:lin Date : 2017/8/28 下午5:58
 */
public class BaseEntity {


    /**
     * 创建人
     */
    private SysUserEntity createUser;


    /**
     * 创建人
     */
    private SysUserEntity updateUser;


    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    /**
     * 状态，通常用于标识是否有效，0：有效；1：无效
     * 如需重写，可考虑用新的属性替代
     */
    private Integer status;


    /**
     * 备注
     */
    private String remarks;


    public SysUserEntity getCreateUser() {
        return createUser;
    }

    public void setCreateUser(SysUserEntity createUser) {
        this.createUser = createUser;
    }

    public SysUserEntity getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(SysUserEntity updateUser) {
        this.updateUser = updateUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }


    @Override
    public String toString() {
        return "BaseEntity{" +
                "createUser=" + createUser +
                ", updateUser=" + updateUser +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", remarks='" + remarks + '\'' +
                '}';
    }
}
